-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix rpc
call from name based Callable
s
#87858
Conversation
2918bc0
to
f1aca80
Compare
f1aca80
to
f3a68f3
Compare
f3a68f3
to
d443908
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes the error, but not sure how to confirm whether the method is actually called.
The code looks fine though.
d443908
to
d64d2e6
Compare
d64d2e6
to
400f438
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great to me!
I remember @reduz wanted this to be implemented at the language level using custom callables, but I think it make sense to also have the option of using Callable(obj, method)
as an alternative if the language doesn't implement it.
Thanks! |
Thank you! |
Makes
rpc
calls work for theCallable(obj, method)
formCallable
s, works like theGDScriptRPCCallable
call (which also does no special treatment for the error return, I'll leave it as such and leave any improvements or changes to that side to future improvements to both)